package com.vincent.util;

import org.apache.kafka.clients.consumer.OffsetAndMetadata;
import org.apache.kafka.common.TopicPartition;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * @author vincent
 * @DATE 2018/11/21
 * @Description
 */
public class PartitionOffsetContainer {
    public static List<Map<TopicPartition, OffsetAndMetadata>> list = new CopyOnWriteArrayList<>();
    public static Map<TopicPartition, OffsetAndMetadata> map = new ConcurrentHashMap<>();
}
